package com.gtw.modules.dao;

import com.baomidou.mybatisplus.plugins.Page;
import com.gtw.modules.entity.TbBargain;
import com.gtw.modules.entity.TbCommodity;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;
import java.util.Map;

@Repository
@Mapper
public interface TbBargainDao {

    int deleteByPrimaryKey(Integer id);

    int insert(TbBargain record);

    int insertSelective(TbBargain record);

    TbBargain selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TbBargain record);

    int updateByPrimaryKey(TbBargain record);

    List<TbBargain> queryPageList(Page<TbBargain> page, Map<String, Object> map);

    List<TbBargain> findAll();

    List<TbBargain> findNoClose(Date oneDay);
}